package com.fengycx.feign;
import com.fengycx.constants.Constants;
import com.fengycx.fallback.CustomerApiFallbackFactory;
import com.fengycx.param.CustomerCancelOrderParam;
import com.fengycx.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(value = Constants.Remote.SERVICE_CUSTOMER,contextId = "CustomerApi",fallbackFactory = CustomerApiFallbackFactory.class)
public interface CustomerFineApi {


    @PostMapping("app/customerCancelOrder")
    R<Void> customerCancelOrder(@RequestBody @Valid CustomerCancelOrderParam param);

}
